package com.cgbl.cg.vm.mine

import android.app.Application
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.net.wifi.WifiConfiguration
import android.net.wifi.WifiInfo
import android.net.wifi.WifiManager
import android.os.Build
import android.provider.Settings
import com.blankj.utilcode.constant.PermissionConstants
import com.blankj.utilcode.util.PermissionUtils
import com.cgbl.cg.utils.city.WifiUtils.*
import com.robot.base.base.vm.GLBaseViewModel
import com.robot.base.configs.AppConstants
import com.robot.base.util.ActivityUtils
import com.robot.base.util.arouter.ARouterUtil
import me.goldze.mvvmhabit.binding.command.BindingAction
import me.goldze.mvvmhabit.binding.command.BindingCommand
import java.net.InetAddress


class SettingViewModel(application: Application) : GLBaseViewModel(application) {

    val clickAccountSettingCommand = BindingCommand<Any>(BindingAction {
//        XKitRouter.withKey(RouterConstant.PATH_CONVERSATION_PAGE).withContext(ActivityUtils.getTopActivity()).navigate();
        ARouterUtil.goToActivity(AppConstants.Router.Mine.A_MINE_SETTING_ACCOUNT)
    })

    val clickMessageSettingCommand = BindingCommand<Any>(BindingAction {
        ARouterUtil.goToActivity(AppConstants.Router.Mine.A_MINE_SETTING_MESSAGE)
    })

    val clickFeedbackCommand = BindingCommand<Any>(BindingAction {
        ARouterUtil.goToActivity(AppConstants.Router.Mine.A_MINE_FEEDBACK)
    })

    val clickPrivacyCommand = BindingCommand<Any>(BindingAction {
        ARouterUtil.goToActivity(AppConstants.Router.Mine.A_MINE_SETTING_PRIVACY)
    })
}